<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<table width="100%">
			<tr>
				<th>Login</th>
				<th>Name</th>
				<th>Group</th>
			</tr>
			<xsl:apply-templates select="//user" />
		</table>
		<br />
		<p style="text-align: center">[pages]</p>

	</xsl:template>
	<xsl:template match="user">
		<xsl:element name="tr">
			<xsl:choose>
				<xsl:when test="./isActive=1">
					<xsl:attribute name="style">
			color:green			
		</xsl:attribute>
				</xsl:when>
				<xsl:otherwise>
					<xsl:attribute name="style">
			color:red	
		</xsl:attribute>
				</xsl:otherwise>
			</xsl:choose>
			<td>
				<a href="./UserInfo?showUserLogin={./login}">
					<xsl:value-of select="login" />
				</a>
			</td>
			<td>
				<xsl:value-of select="name" />
			</td>
			<td>
				<xsl:value-of select="group/groupName" />
				(
				<xsl:value-of select="group/groupOwnerLogin" />
				)
			</td>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>